package com.tingyuge.base.thread.concurrent2;

/**
 * Created by xiaodao
 * date: 2019/11/27
 * 锁粗化
 */
public class MyTest5 {
    Object object = new Object();
    public void method(){

        synchronized (object){
            System.out.println("MyTest5.method");
        }
        synchronized (object){
            System.out.println("MyTest5.method1");
        }
        synchronized (object){
            System.out.println("MyTest5.method11");
        }
    }
}
